package com.ruoyi.operation.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.encrypt.annotation.EncryptField;
import com.ruoyi.common.encrypt.enumd.AlgorithmType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * sql执行工具对象 t_sqltool
 *
 * @author ruoyi
 * @date 2025-06-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_sqltool")
public class TSqltool extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id")
    private String id;
    /**
     * 部门id
     */
    private Long deptid;
    /**
     * 系统id
     */
    private String busisystemid;
    /**
     * 名称
     */
    private String toolname;
    /**
     * 描述
     */
    private String memo;
    /**
     * 数据库类型
     */
    private String dbtype;
    /**
     * 数据库url
     */
    private String dburl;
    /**
     * 数据库用户
     */
    private String dbusername;
    /**
     * 数据库密码
     */
    @EncryptField(algorithm = AlgorithmType.AES, password = "10rfylhtccpuyke5")
    private String dbpassword;
    /**
     * sql内容
     */
    private String sqlcontent;
    /**
     * 状态
     */
    private String status;

    /**
     * 流程定义
     */
    private String flowCode;

    private String flowInstanceId;
}
